import request from '@/utils/request'

// 查询电动车充电记录列表
export function listChargingofCam(query) {
  return request({
    url: '/system/chargingofCam/list',
    method: 'get',
    params: query
  })
}

// 查询电动车充电记录详细
export function getChargingofCam(chargeId) {
  return request({
    url: '/system/chargingofCam/' + chargeId,
    method: 'get'
  })
}

// 新增电动车充电记录
export function addChargingofCam(data) {
  return request({
    url: '/system/chargingofCam',
    method: 'post',
    data: data
  })
}

// 修改电动车充电记录
export function updateChargingofCam(data) {
  return request({
    url: '/system/chargingofCam',
    method: 'put',
    data: data
  })
}

// 删除电动车充电记录
export function delChargingofCam(chargeId) {
  return request({
    url: '/system/chargingofCam/' + chargeId,
    method: 'delete'
  })
}

// 统计电动车充电记录
export function statChargingofCam(query) {
  return request({
    url: '/system/chargingofCam/statistics',
    method: 'get',
    params: query
  })
}
